package com.zcn.io.web.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zcn.io.common.vo.OrderMainForTrusteeshipVo;
import com.zcn.io.web.api.entity.Maintenance;
import com.zcn.io.web.api.query.MaintenanceQuery;
import com.zcn.io.web.api.vo.MaintenanceVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @desc:
 * @author: 202438 邱建伟
 * @date: 2025/5/1 14:37
 * @Copyright (c) 2025, 江苏金恒信息科技股份有限公司
 */
@Mapper
public interface MaintenanceMapper extends BaseMapper<Maintenance> {

    Page<MaintenanceVo> list(Page<MaintenanceVo> page,@Param("query") MaintenanceQuery query);

    Integer getUnfinishedMaintenanceNumber(@Param("tgDtlId")String tgDtlId,@Param("status") String status);

    OrderMainForTrusteeshipVo getTrusteeshipDetailById(String dtlId);

}
